import web
import storage
import routing
import sys

#storage.Storage().setFlushInterval(2)

class Application:
	def __init__(self, root, routes):
		sys.path.append(root);
		server = web.Server(root, routes)
		server.serve()
